package com.nercel.aop;


import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

@Aspect
public class MathAspect {

    @Before(value = "execution(public int com.nercel.aop.MathCompute.div(int, int))" )
    public void logBefore(){
        System.out.println("logBefore。。。");
    }

    @After(value = "execution( public int com.nercel.aop.MathCompute.div(int ,int))")
    public void logAfter(){
        System.out.println("logAfter。。。");
    }

    public void logReturn(){}

    public void logThrow(){}
}
